import request from '@/utils/request'

// 查询中奖订单列表
export function listLuck(query) {
  return request({
    url: '/system/luck/list',
    method: 'get',
    params: query
  })
}

// 查询中奖订单详细
export function getLuck(luckId) {
  return request({
    url: '/system/luck/' + luckId,
    method: 'get'
  })
}

// 新增中奖订单
export function addLuck(data) {
  return request({
    url: '/system/luck',
    method: 'post',
    data: data
  })
}

// 修改中奖订单
export function updateLuck(data) {
  return request({
    url: '/system/luck',
    method: 'put',
    data: data
  })
}

// 删除中奖订单
export function delLuck(luckId) {
  return request({
    url: '/system/luck/' + luckId,
    method: 'delete'
  })
}

// 导出中奖订单
export function exportLuck(query) {
  return request({
    url: '/system/luck/export',
    method: 'get',
    params: query
  })
}